package cn.edu.tfswufe.pojo;

public class Admin {
    private String adminID; // 管理员编号
    private String username; // 用户名
    private String password; // 密码
    private String role;
    // 无参构造方法
    public Admin() {
    }

    // 全参构造方法
    public Admin(String adminID, String username, String password, String role) {
        this.adminID = adminID;
        this.username = username;
        this.password = password;
        this.role = role;
    }

    // Getter 和 Setter 方法
    public String getAdminID() {
        return adminID;
    }

    public void setAdminID(String adminID) {
        this.adminID = adminID;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    // 重写 toString 方法，方便打印信息
    @Override
    public String toString() {
        return "Admin{" +
                "adminID='" + adminID + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", role='" + role + '\'' +
                '}';
    }
}
